package com.meituan.sdk.model.waimaiNg.diancan.diancanShopServeStatusUpdate;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 营业时间开通接口
* This file was automatically generated.
*/
@ApiMeta(
    path = "/waimai/ng/diancan/shop/serve/status/update",
    businessId = 2,
    apiVersion = "10003",
    apiName = "diancan_shop_serve_status_update",
    needAuth = true
)
public class DiancanShopServeStatusUpdateRequest implements MeituanRequest<DiancanShopServeStatusUpdateResponse> {
    /**
    * <p data-diff-id="ct-diff-id-7e3cd20d-cf7a-4991-ab4c-825197e8c927"><font style="font-size:14px;line-height:22px" data-size="14">厂商配置列表，<span style="color: rgb(245, 35, 45)">单次请求批量限制20</span></font></p>
    */
    @NotEmpty(message = "requestData不能为空")
    @SerializedName("requestData")
    private List<VendorServiceConfigRequest> requestData;
    /**
    * <p data-diff-id="ct-diff-id-0843f627-5c76-4b32-81e1-84679a256a17"><font style="font-size:14px;line-height:22px" data-size="14">厂商门店ID列表，用,隔开，比如 123,300</font></p>
    */
    @NotBlank(message = "appPoiCodes不能为空")
    @SerializedName("appPoiCodes")
    private String appPoiCodes;

    public List<VendorServiceConfigRequest> getRequestData() {
        return requestData;
    }
    public void setRequestData(List<VendorServiceConfigRequest> requestData) {
        this.requestData = requestData;
    }
    public String getAppPoiCodes() {
        return appPoiCodes;
    }
    public void setAppPoiCodes(String appPoiCodes) {
        this.appPoiCodes = appPoiCodes;
    }


    @Override
    public MeituanResponse<DiancanShopServeStatusUpdateResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<DiancanShopServeStatusUpdateResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "DiancanShopServeStatusUpdateRequest{" + "requestData=" + requestData + "," + "appPoiCodes=" + appPoiCodes + "}";
    }
}
